﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace DataAccessLayer.Admin.Filters
{
    public class FilterGeneratorBase
    {
        protected Expression CheckNotContains(Expression expression, DTO.ConditionTypes ConditionType)
        {
            if (ConditionType == DTO.ConditionTypes.NotContains)
                return Expression.IsFalse(expression);
            else
                return expression;
        }
    }
}
